//
//  AdViewManager.h
//  ebook
//
//  Created by 吴超飞 on 2016/11/10.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "BaiduMobAdSDK/BaiduMobAdSplash.h"
//#import <GoogleMobileAds/GoogleMobileAds.h>
#import "SplashSDK.h"//Tanv
#import "StatSDK.h"

#define  kDefaultShowTime  5//默认展示时间

@interface AdViewManager : NSObject<BaiduMobAdSplashDelegate>

-(instancetype)initWichSuperController:(UIViewController *)controller isFromBackgroud:(BOOL)isfromback;

+(void)showAdOnController:(UIViewController *)controller isFromBackgroud:(BOOL)isfromback;

+ (UIViewController *)getCurrentVC;
//后台切换到前台是否需要显示广告
+ (BOOL)isNeedShowAdWhenEnterforground;
//进入后台超过指定时间
+(BOOL)isOverTime:(NSTimeInterval)inter;
//所给的时间是否是今天
+ (BOOL)dateIsToday:(NSDate *)date;
//当天是否点击过广告
+(BOOL)isClickAdToday;

@end
